package io.louis.vmq.param;

/**
 * @author lv
 * @date 2021/7/12 21:45
 */
public class ParamIsNullException extends RuntimeException{
    private final String parameterName;
    private final String parameterType;
    public ParamIsNullException(String parameterName,String parameterType){
        super("");
        this.parameterName  = parameterName;
        this.parameterType = parameterType;
    }

    @Override
    public String getMessage(){
        return "[" + this.parameterName + "]不能为空！";
    }
    public final String getParameterName(){
        return this.parameterName;
    }
    public final String getParameterType(){
        return this.parameterType;
    }
}
